package com.yoowin.test;

public class TvFactory {
	
	public Object getBean(String tvName) {

		if (tvName == "lg") {
			return new LgTV();
		} else if (tvName == "samsung") {
			return new SamsungTV();
		}
		
		return null;
	}
}
